ServiceAPI Constructors
An object defining constructors for the ServiceAPI class.
ServiceAPI(loginParameters, apiUrlOrInstanceName, logSeverity, telemetryCollectorHolder)
Creates a ServiceAPI instance with Token Authentication.
Parameters:
loginParameters (required): LoginWithTokenAuthenticationParameters
Parameters required for token authentication.
apiUrlOrInstanceName (required): string
The API URL or instance name.
logSeverity (optional): LogSeverity
Specifies the logging level.
telemetryCollectorHolder (optional): ITelemetryCollectorHolder
Holds telemetry collection data. This property is advance using only.
ServiceAPI(loginParameters, apiUrlOrInstanceName, logSeverity, telemetryCollectorHolder)
Creates a ServiceAPI instance with Access Token Authentication.
Parameters:
loginParameters (required): LoginWithAccessTokenParameters
Parameters required for access token authentication.
apiUrlOrInstanceName (required): string
The API URL or instance name.
logSeverity (optional): LogSeverity
Specifies the logging level.
telemetryCollectorHolder (optional): ITelemetryCollectorHolder
Holds telemetry collection data. This property is advance using only.
ServiceAPI(loginParameters, apiUrlOrInstanceName, logSeverity, telemetryCollectorHolder)
Creates a ServiceAPI instance with Basic Authentication.
Parameters:
loginParameters (required): LoginWithBasicAuthenticationParameters
Parameters required for basic authentication.
apiUrlOrInstanceName (required): string
The API URL or instance name.
logSeverity (optional): LogSeverity
Specifies the logging level.
telemetryCollectorHolder (optional): ITelemetryCollectorHolder
Holds telemetry collection data. This property is advance using only.